<?PHP
// vim: set expandtab tabstop=4 shiftwidth=4:
// +----------------------------------------------------------------------+
// | SAPID: XML Sapiens Engine Demonstrator                               |
// +----------------------------------------------------------------------+
// | Author:  Max Baryshnikov aka Mephius <mb@rg.by>	                  |
// | Copyright (c) 2004 Max Baryshnikov                                   |
// | http://sapid.sourceforge.net	                                      |
// +----------------------------------------------------------------------+
// | This source file is free software; you can redistribute it and/or    |
// | modify it under the terms of the GNU Lesser General Public           |
// | License as published by the Free Software Foundation; either         |
// | version 2.1 of the License, or (at your option) any later version.   |
// |                                                                      |
// | This source file is distributed in the hope that it will be useful,  |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    |
// | Lesser General Public License for more details.                      |
// +----------------------------------------------------------------------+
// Release: 28.11.04 (dd/mm/yy)
// $Id: case.inc.php,v 1.2 2005/06/20 10:41:32 mephius Exp $

if (!defined("SAPID_STARTED")) die("Hacking attempt!");

function option_switch(){
	global $panel, $lang, $http_path, $root_path, $metatitle, $env;
	$panel="";
	switch ($_GET["option"]){
		case "structure":
		$metatitle = $lang["StructureDescription"];
		include("interface/structure.inc.php");
		break;
		case "templates":
			case "edit_template":
			case "create_template":
			case "delete_template":
			$metatitle = $lang["TemplatesDescription"];
			include("interface/templates.inc.php");
		break;
		case "ddc":
			case "edit_ddc":
			case "create_ddc":
			case "delete_ddc":
			$metatitle = $lang["DDCDescription"];
			include("interface/ddc.inc.php");
		break;
		case "list_func":
			case "edit_func":
			case "create_func":
			case "delete_func":
			$metatitle = $lang["FunctionsDescription"];
			include("interface/user_functions.inc.php");
		break;
		case "stats":
			$metatitle = $lang["StatisticDescription"];
			include("interface/stats.inc.php");
		break;
		case "users":
			case "create_user":
			case "edit_user":
			case "delete_user":
			$metatitle = $lang["Users"];
			include("interface/users.inc.php");
		break;

	}
	return true;
}

?>